package com.mlz.mlzmall.bean;

import java.io.Serializable;

/**
 * Created by jack.wang on 2015/12/14.
 */
public class DefaultAddressInfo implements Serializable {
    public int status;
    public Object errors;
    public String msg;
    public Data data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Object getErrors() {
        return errors;
    }

    public void setErrors(Object errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        public String fullname;
        public String shippingTelephone;
        public int regionCode;
        public String address;
        public String postcode;
        public boolean defaultAddress;
        public int addressId;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getFullname() {
            return fullname;
        }

        public void setFullname(String fullname) {
            this.fullname = fullname;
        }

        public String getShippingTelephone() {
            return shippingTelephone;
        }

        public void setShippingTelephone(String shippingTelephone) {
            this.shippingTelephone = shippingTelephone;
        }

        public int getRegionCode() {
            return regionCode;
        }

        public void setRegionCode(int regionCode) {
            this.regionCode = regionCode;
        }

        public String getPostcode() {
            return postcode;
        }

        public void setPostcode(String postcode) {
            this.postcode = postcode;
        }

        public boolean isDefaultAddress() {
            return defaultAddress;
        }

        public void setDefaultAddress(boolean defaultAddress) {
            this.defaultAddress = defaultAddress;
        }

        public int getAddressId() {
            return addressId;
        }

        public void setAddressId(int addressId) {
            this.addressId = addressId;
        }

        @Override
        public String toString() {
            return "Data{" +
                    "fullname='" + fullname + '\'' +
                    ", shippingTelephone='" + shippingTelephone + '\'' +
                    ", regionCode=" + regionCode +
                    ", address='" + address + '\'' +
                    ", postcode='" + postcode + '\'' +
                    ", defaultAddress=" + defaultAddress +
                    ", addressId=" + addressId +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "DefaultAddressInfo{" +
                "status=" + status +
                ", errors=" + errors +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
